package com.ai.pos.client.sales.models;

import java.io.Serializable;

//import com.google.gson.Gson;

public class SalesItem implements Serializable {

	
	public SalesItem(){};
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public static final int REC_ID = 1;
	public static final int LONGNAME = 2;
	public static final int RECEIPT_NAME = 3;
	public static final int BUTTON_ONE_NAME = 4;
	public static final int BUTTON_TWO_NAME = 5;
	public static final int CATEGORY = 6;
	public static final int COST = 7;
	public static final int SALES_PRICE = 8;
	
	
	
	private int recId;
	private String longName;
	private String recieptName;
	private String buttonOneName;
	private String buttonTwoName;
	private int itemCategory;
	private float salePrice;
	private float costPrice;
	
	
	
	//Getting and receiving accross the wire.
	/*
	public String getJson()
	{
		Gson gson = new Gson();
		return gson.toJson(this);  
	}
	
	public static SalesItem getSalesItemFromJson(String json)
	{
		Gson gson = new Gson();
		return gson.fromJson(json, SalesItem.class);
	}
	
	
	*/



	public float getSalePrice() {
		return salePrice;
	}
	
	public String getSalePriceString() {
		return Float.toString(salePrice);
	}





	public void setSalePrice(float salePrice) {
		this.salePrice = salePrice;
	}




	public int getItemCategory() {
		return itemCategory;
	}




	public void setItemCategory(int itemCategory) {
		this.itemCategory = itemCategory;
	}




	public String getButtonTwoName() {
		return buttonTwoName;
	}




	public void setButtonTwoName(String buttonTwoName) {
		this.buttonTwoName = buttonTwoName;
	}




	public String getButtonOneName() {
		return buttonOneName;
	}




	public void setButtonOneName(String buttonOneName) {
		this.buttonOneName = buttonOneName;
	}




	public String getRecieptName() {
		return recieptName;
	}




	public void setRecieptName(String recieptName) {
		this.recieptName = recieptName;
	}




	public String GetLongName() {
		return longName;
	}




	public void SetLongName(String longName) {
		this.longName = longName;
	}




	public int GetRecId() {
		return recId;
	}




	public void SetRecId(int recId) {
		this.recId = recId;
	}
	
	//This will be the cache when using Advanced inventory (Based on cost profiles)
	public String GetSimpleCostString()
	{
		return Float.toString(costPrice);
	
	}
}
